﻿@model IAS.WEB.ViewModels.HomeViewModel
@{
    ViewBag.Title = "登录";
    Layout = "~/Views/Shared/_Layout.cshtml";
    var session = Model.Session;
    var userName = session.UserName ?? session.Email ?? "test";
}


<div style="margin:auto;width:600px;">
    @using (Html.BeginForm("login", "login"))
    {
        <input type="hidden" name="redirect" value="@Request.QueryString["redirect"]" />

        @Html.ValidationSummary(true, "", new { @class = "text-danger" })
        <h2>登录</h2>
        <div class="form-group">
            <input class="form-control input-lg" id="userName" name="userName" type="text" placeholder="UserName" value="@userName">
        </div>
        <div class="form-group">
            <input class="form-control input-lg" id="password" name="password" type="password" placeholder="Password">
        </div>
        <div class="form-group">
            <input type="checkbox" name="rememberMe" id="rememberMe" class="checkbox-inline"><span> 记住密码</span>            
        </div>
        <div class="form-group">
            <button type="submit" class="btn btn-lg btn-primary">登录</button>
        </div>
    }
    <br class="cbt" />
    <br />
</div>
